<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>轮播图</title>
    <style>
      .slideshow-box {
        width: 500px;
        height: 200px;
        margin: 0 auto;
        overflow: hidden;
      }
      .slideshow {
        width: 2000px;
        height: 200px;
        animation: slide 15s linear infinite;
      }
      .slideshow img {
        width: 500px;
        height: 200px;
        float: left;
      }

      @keyframes slide {
        from {
          margin-left: 0px;
        } to {
            margin-left: -1500px;
        }
      }
    </style>
  </head>
  <body>
    <div class="slideshow-box">
      <div class="slideshow">
        <div>
            <img src="./img/1.jpg" alt="">
        </div>
        <div>
            <img src="./img/2.jpg" alt="">
        </div>
        <div>
            <img src="./img/3.jpg" alt="">
        </div>
        <div>
            <img src="./img/4.jpg" alt="">
        </div>
        <div>
      </div>
    </div>
  </body>
</html>
